package com.zimi.mapper;

import com.zimi.model.WfWorkflow;
import com.zimi.model.WfWorkflowVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WfWorkflowMapper {
    int deleteByPrimaryKey(Integer wfId);

    int insert(WfWorkflow record);

    int insertSelective(WfWorkflow record);

    public WfWorkflow selectByPrimaryKey(Integer wfId);

    int updateByPrimaryKeySelective(WfWorkflow record);

    int updateByPrimaryKey(WfWorkflow record);

    List<WfWorkflow> selectAll(WfWorkflow record);

    List<WfWorkflow> selectWfWorkflowByFormId(Integer fId);

    @Select("SELECT LAST_INSERT_ID() as id")
    int lastInsertId();

    WfWorkflowVO findVOById(Integer wfId);
}